commit 29ff842dfe33d172d115a90ab69cc240426dad04
Author: q66 <q66@chimera-linux.org>
Date:   Tue Oct 4 10:45:28 2022 +0200

    reduce debug_info on riscv

diff --git a/build/moz.configure/rust.configure b/build/moz.configure/rust.configure
index e64dc5d..e3e1fbd 100644
--- a/build/moz.configure/rust.configure
+++ b/build/moz.configure/rust.configure
@@ -653,7 +653,11 @@ def rust_compile_flags(
         debug_assertions = False
 
     if debug_symbols:
-        debug_info = "2"
+        # linking fails with full debug info on riscv
+        if target.cpu == "riscv64":
+            debug_info = "1"
+        else:
+            debug_info = "2"
 
     opts = []
 
